home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14927 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1011 b 

  1. Path: prodigy.com!usenet
  2. From: GQXN85A@prodigy.com (Richard Orlando)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: interesting program
  5. Date: 16 Apr 1996 03:13:48 GMT
  6. Organization: Prodigy Services Company  1-800-PRODIGY
  7. Distribution: world
  8. Message-ID: <4kv39c$1tps@usenetp1.news.prodigy.com>
  9. References: <4ka96c$jt3@mirv.unsw.edu.au> <4kmi43$ff4@airdmhor.gen.nz>
  10. NNTP-Posting-Host: innugap3-int.news.prodigy.com
  11. X-Newsreader: Version 1.2
  12.  
  13. >
  14. >system PRIVILEGED account:
  15. >> can someone write a program which when compiled and executed, will 
  16. produce the
  17. >> source code itself, i.e. for example, the program is called hello.c, 
  18. when we
  19. >> executed hello>test, the content of test will be the same as hello.c ! 
  20. Of
  21. >> course, we cannot use the method of reading the file hello.c
  22. >
  23. >  It's in somebody's .Sig on here.. shouldn't be hard to find.
  24. I quess it is possible, but the compiled code would have to include 
  25. symbolic debuging information and the source file would also have to be 
  26. in the same place as the exe etc...
  27.  
  28.